const sayName = (name: string) => {
  return `Hello ${ name }`;
};
sayName('薛帅康');

// 泛型
const creatNumberArray = function(leng: number, value: number):number[] {
  let arr = Array<number>(leng).fill(value);
  return arr;
}
// function creatNumberArray(leng: number, value: number): number[] {
//   const arr = Array<number>(leng).fill(value);
//   return arr;
// }

console.log(creatNumberArray(3, 100));
